<?php
auth_redirect();

$xajax = new xajax(); 
//$xajax->debugOn(); // Uncomment this line to turn debugging on
$xajax->registerFunction("logoutFunc");
$xajax->registerFunction("processSubmitForm3");
$xajax->processRequests();

global $db_query;
$url = "http://";
$title = "";

if(isset($db_query->query_vars['url']))
	$url = $db_query->query_vars['url'];
if(isset($db_query->query_vars['title'])){
	$title = $db_query->query_vars['title'];
	$title = funky_javascript_fix($title);

}

?>

<?php get_header(); ?>

<DIV id=container>
<br/>
<H2><A href="<?=get_option('siteurl')?>">首页</A> &#187; 提交文章</H2>
<br/>

<form id="submitForm3" action="javascript:void(null);" onsubmit="submitPost3();">
<label accesskey="1">原文链接(URL):</label><br />

<input type="text" name="url" id="url" value="<?=$url ?>"  size="80" /> <A HREF="<?=$url ?>" target="_blank">查看</A><br />
<span id="checkurlmsg"></span>

<br/><span class="l-mid">
<label for="title" accesskey="2">标题:</label><br />
<span class="form-note">给你提交的文章一个标题. (最多 75 字符)</span></span>
<input type="text" id="title" name="title" value="<?=$title ?>" size="60" maxlength="75"/><br />
<span id="checktitlemsg"></span>

<p class="l-mid">
<label for="bodytext" accesskey="3">简介:</label>
<span class="form-note">给你提交的文章一个简单描述,可以是拷贝文章开头的几句话,或者是你自己的评论.</span>
<textarea name="bodytext" rows="10" cols="60" id="bodytext"></textarea></p>
<span id="checkdesmsg"></span>

<p class="l-mid">
<label for="category" accesskey="6">地点:</label>
<br /><span class="form-note">输入文章中的国家、城市、景点的名称.(用空格分割)</span>
<input type="text" id="place" name="place" value="" size="60" /></p>
<span id="checkplacemsg"></span>

<p class="l-mid">
<label for="captcha" accesskey="7">请输入您看到的数字:</label><br />
<input type="text" name="captchatext" id="captchatext" value="" style="vertical-align: top;" size="8" maxlength="4"/> 
<img src="<?=get_option('siteurl'); ?>/tr-themes/checkbox.php?act=yes" align="absmiddle" class="captcha" alt="有问题请联系 <?=get_option('admin_email'); ?>" /></p>
<span id="checkcaptchamsg"></span>

<p class="l-mid">
<input type="checkbox" name="diglink" checked="checked">
<label for="diglink" accesskey="1">提交后自动收藏该文章</label><br />
</p>

<input type="submit" name="submit3" value="提交">

</form>

</DIV></DIV>

</BODY>